<%-- 
    Document   : menuTab
    Created on : Mar 26, 2011, 11:27:13 PM
    Author     : eisa
--%>

<%-- <%@page contentType="text/html" pageEncoding="UTF-8"%>--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">


    <div id="menu_tab">
            <div class="left_menu_corner"></div>
                    <ul class="menu">
                         <li><a href="index.jsp" class="nav1">  Home </a></li>
                         <li class="divider"></li>
                         <li><a href="Products.jsp" class="nav2">Products</a></li>
                        
                         <li class="divider"></li>
                         
                         <c:choose>
                         <c:when test="${empty LOGIN_USER}" >
                         <li><a href="Signup.jsp" class="nav4">Sign Up</a></li>
                         <li class="divider"></li>
                         <li><a href="javascript:signinShowBox()" class="nav4">Sign In</a></li>
                         <li class="divider"></li>
                         </c:when>
                         <c:otherwise>
                           <li><a href="EditProfile.jsp" class="nav4">Edit Profile</a></li>
                         <li class="divider"></li>
                             <li><a href="DisplayAllUser?type=details&ID=${LOGIN_USER.customerId}" class="nav4">Cart Information</a></li>
                         <li class="divider"></li>
                         <c:if test="${LOGIN_USER.manager}">
                         <li><a href="DisplayAllUser" class="nav6">All Users</a></li>
                         <li class="divider"></li>
                         <li><a href="AdminHome.jsp" class="nav6">Manage Product</a></li>
                         <li class="divider"></li>
                       
                         </c:if>
                         <li><a href="#" class="nav6">Welcome ${LOGIN_USER.customerName}</a></li>
                         <li class="divider"></li>

                          <li><a href="Signin" class="nav4">Log Out</a></li>
                         <li class="divider"></li>

                         </c:otherwise>
                         </c:choose>
                    </ul>

             <div class="right_menu_corner"></div>
            </div>

 <script type="text/javascript" >
     if("${loginStatus}"=="1")
         {
         signinShowBox();
         $("#loginError").append("<font id='Errorfont' color='red' size='3'><B> User name or password are Incorrect</font>");
         }
 </script>

